package com.meichis.yndms.model;

import com.meichis.mcsappframework.utils.DateUtil;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-06-06 14:07
 */
public class VstTravel implements Serializable {

    //门店ID
    private String TerminalIBMID = "";
    //门店名称
    private String TerminalName = "";
    //经度
    private double Lng = 0;
    //纬度
    private double Lat = 0;
    //拜访时间
    private String IDate = "";

    public String getTerminalIBMID() {
        return TerminalIBMID;
    }

    public void setTerminalIBMID(String terminalIBMID) {
        TerminalIBMID = terminalIBMID;
    }

    public String getTerminalName() {
        return TerminalName;
    }

    public void setTerminalName(String terminalName) {
        TerminalName = terminalName;
    }

    public double getLng() {
        return Lng;
    }

    public void setLng(double lng) {
        Lng = lng;
    }

    public double getLat() {
        return Lat;
    }

    public void setLat(double lat) {
        Lat = lat;
    }

    public String getIDate() {

        return IDate;
    }

    public void setIDate(String IDate) {
        this.IDate = IDate;
    }

    public String getStrIDate() {
        try {
            DateFormat dateFormat = new SimpleDateFormat("yyyy/M/d HH:mm:ss");
            Date date = dateFormat.parse(IDate);
            SimpleDateFormat format = new SimpleDateFormat(DateUtil.FORMAT_YMDHM);
            String dateString = format.format(date);
            return dateString;
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return "1900-01-01 00:00:00";



    }

}
